
import java.util.Scanner;
import java.util.Locale;


public class Main {


    public static void main(String[] args) {
        Locale.setDefault(Locale.US);

        Scanner sc = new Scanner(System.in);
        double A = sc.nextDouble(); double B = sc.nextDouble(); double media = ((A * 3.5) + (B * 7.5))/11;
        System.out.printf("MEDIA = %.5f\n", media);
        sc.close();
    }

}
